home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-02-12 | 4.1 KB | 144 lines | [TEXT/MPS ] |
- {
- File: QTML.p
-
- Contains: QuickTime Cross-platform specific interfaces
-
- Version: Technology: QuickTime 3.0
- Release: Universal Interfaces 3.1
-
- Copyright: © 1997-1998 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: Please include the the file and version information (from above) with
- the problem description. Developers belonging to one of the Apple
- developer programs can submit bug reports to:
-
- devsupport@apple.com
-
- }
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT QTML;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED __QTML__}
- {$SETC __QTML__ := 1}
-
- {$I+}
- {$SETC QTMLIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
-
- {$IFC UNDEFINED __MACTYPES__}
- {$I MacTypes.p}
- {$ENDC}
- {$IFC UNDEFINED __MACMEMORY__}
- {$I MacMemory.p}
- {$ENDC}
- {$IFC UNDEFINED __MACWINDOWS__}
- {$I MacWindows.p}
- {$ENDC}
- {$IFC UNDEFINED __OSUTILS__}
- {$I OSUtils.p}
- {$ENDC}
- {$IFC UNDEFINED __FILES__}
- {$I Files.p}
- {$ENDC}
-
-
- {$PUSH}
- {$ALIGN MAC68K}
- {$LibExport+}
-
- PROCEDURE QTMLYieldCPU;
- PROCEDURE QTMLYieldCPUTime(milliSeconds: LONGINT; flags: UInt32);
- {$IFC NOT TARGET_OS_MAC }
-
- TYPE
- QTMLMutex = LONGINT;
- QTMLSyncVar = ^LONGINT;
- QTMLSyncVarPtr = ^QTMLSyncVar;
-
- CONST
- kInitializeQTMLNoSoundFlag = $00000001; { flag for requesting no sound when calling InitializeQTML }
- kInitializeQTMLUseGDIFlag = $00000002; { flag for requesting GDI when calling InitializeQTML }
-
- kQTMLHandlePortEvents = $00000001; { flag for requesting requesting QTML to handle events }
- kQTMLNoIdleEvents = $00000002; { flag for requesting requesting QTML not to send Idle Events }
-
- FUNCTION InitializeQTML(flag: LONGINT): OSErr;
- PROCEDURE TerminateQTML;
- FUNCTION CreatePortAssociation(theWnd: UNIV Ptr; storage: Ptr; flags: LONGINT): GrafPtr;
- PROCEDURE DestroyPortAssociation(cgp: CGrafPtr);
- PROCEDURE QTMLGrabMutex(mu: QTMLMutex);
- PROCEDURE QTMLReturnMutex(mu: QTMLMutex);
- FUNCTION QTMLCreateMutex: QTMLMutex;
- PROCEDURE QTMLDestroyMutex(mu: QTMLMutex);
- FUNCTION QTMLCreateSyncVar: QTMLSyncVarPtr;
- PROCEDURE QTMLDestroySyncVar(p: QTMLSyncVarPtr);
- FUNCTION QTMLTestAndSetSyncVar(sync: QTMLSyncVarPtr): LONGINT;
- PROCEDURE QTMLWaitAndSetSyncVar(sync: QTMLSyncVarPtr);
- PROCEDURE QTMLResetSyncVar(sync: QTMLSyncVarPtr);
- PROCEDURE InitializeQHdr(VAR qhdr: QHdr);
- PROCEDURE TerminateQHdr(VAR qhdr: QHdr);
- PROCEDURE QTMLAcquireWindowList;
- PROCEDURE QTMLReleaseWindowList;
- {
- These routines are here to support "interrupt level" code
- These are dangerous routines, only use if you know what you are doing.
- }
-
- FUNCTION QTMLRegisterInterruptSafeThread(threadID: UInt32; threadInfo: UNIV Ptr): LONGINT;
- FUNCTION QTMLUnregisterInterruptSafeThread(threadID: UInt32): LONGINT;
- FUNCTION NativeEventToMacEvent(nativeEvent: UNIV Ptr; VAR macEvent: EventRecord): LONGINT;
- {$IFC TARGET_OS_WIN32 }
- FUNCTION WinEventToMacEvent(winMsg: UNIV Ptr; VAR macEvent: EventRecord): LONGINT;
- FUNCTION IsTaskBarVisible: BOOLEAN;
- PROCEDURE ShowHideTaskBar(showIt: BOOLEAN);
-
- CONST
- kDDSurfaceLocked = $00000001;
- kDDSurfaceStatic = $00000002;
-
- FUNCTION QTGetDDObject(VAR lpDDObject: UNIV Ptr): OSErr;
- FUNCTION QTSetDDObject(lpNewDDObject: UNIV Ptr): OSErr;
- FUNCTION QTSetDDPrimarySurface(lpNewDDSurface: UNIV Ptr; flags: UInt32): OSErr;
- FUNCTION QTMLGetVolumeRootPath(fullPath: CStringPtr; volumeRootPath: CStringPtr; volumeRootLen: UInt32): OSErr;
- {$ENDC}
-
- CONST
- kCheckDataFork = $01;
- kCheckResourceFork = $02;
- kCheckFolder = $04;
- kCheckWritable = $0100;
- kCheckReadable = $0200;
- kCheckCreatable = $0400;
-
- FUNCTION FileCanDo(VAR fsp: FSSpec; what: LONGINT): OSErr;
- FUNCTION QTMLGetCanonicalPathName(inName: CStringPtr; outName: CStringPtr; outLen: UInt32): OSErr;
-
- CONST
- kFullNativePath = 0;
- kFileNameOnly = $01;
- kDirectoryPathOnly = $02;
-
- FUNCTION FSSpecToNativePathName({CONST}VAR inFile: FSSpec; outName: CStringPtr; outLen: UInt32; flags: LONGINT): OSErr;
- FUNCTION NativePathNameToFSSpec(inName: CStringPtr; VAR outFile: FSSpec; flags: LONGINT): OSErr;
- {$ENDC}
-
- {$IFC TARGET_OS_MAC }
- {$ENDC} {TARGET_OS_MAC}
-
- {$ALIGN RESET}
- {$POP}
-
- {$SETC UsingIncludes := QTMLIncludes}
-
- {$ENDC} {__QTML__}
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-